import login from './components/login.vue'
import home from './components/home.vue'
import register from './components/regioster.vue'
import forget from './components/Forget.vue'
import cell from './components/cell.vue'
import setup from './components/setup.vue'
import password from './components/password.vue'
import Notice from './components/Notice.vue'
import Infos from './components/information.vue'
import Increase from './components/increase.vue'
import Access from './components/access.vue'
import Trouble from './components/trouble.vue'
import Worker from './components/worker.vue'
import Statistic from './components/statistic.vue'
import Key from './components/key.vue'
import Approval from './components/approval.vue'
import Authdetail from './components/authdetail.vue'
import Units from './components/units.vue'
import Search from './components/search.vue'
import State from './components/state.vue'
import Manage from './components/manage.vue'

export default[
    {
        path:'/',component:login                //默认页是登录路由
    },
    {
        path:'/home',component:home,            //跳转首路由
    },
    {
        path:'/setup',                       //跳转设置路由
        component:setup             
    },
    {
        path:'/notice',                         //跳转公告路由
        component:Notice,
    },
    {                                           //跳转公告详情
        path:'/info',
        component:Infos,
        name:'info',
    },      
    {                                           //跳转添加公告
        path:'/increase',
        component:Increase,
        name:'increase'
    },         
    {                                           //跳转房屋认证
        path:'/approval',
        component:Approval
    },
    {
        path:'/authdetail',
        component:Authdetail,
        name:'authdetail'
    },
    {
        path:'/units',
        component:Units
    },
    {
        path:'/access',
        component:Access
    },
    {
        path:'/trouble',
        component:Trouble,
    },
    {
        path:'/worker',
        component:Worker,
        name:'worker'
    },   
    {                                           //跳转数据统计房屋查找
        path:'/search',
        component:Search
    },
    {
        path:'/manage',
        component:Manage
    },
    {
        path:'/state',                          //跳转住户
        component:State,
        name:'state'
    },
    {                                                   //跳转数据统计
        path:'/statistic',
        component:Statistic
    },
    {                                                   //一键开门路由
        path:'/key',
        component:Key
    },     
    {
        path:'/register',component:register         //注册路由
    },
    {
        path:'/forget',component:forget             //重置密码路由
    },
    {
        path:'/cell',component:cell,                //切换小区路由
    },
    {                                                   //切换修改密码路由
        path:'/password',
        component:password
    }
]